﻿Imports DTO
Imports BUS
Public Class FormChonNhanVien
    Public _flag As Integer = 0
    Public _maNV As Integer
    Dim DSNhanVienTruc As New List(Of DTONhanVien)
    Dim _nvBUS As New NhanVienBUS()
    Private Sub FormChonNhanVien_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim dt As New DataTable()
        dt = _nvBUS.LoadTableNVTrucBUS()
        cbNhanVien.DataSource = dt
        cbNhanVien.DisplayMember = "Ten"
        cbNhanVien.ValueMember = "MaNV"
    End Sub


    Private Sub btnChonNV_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnChonNV.Click
        _flag = 1
        _maNV = cbNhanVien.SelectedValue
        Me.Close()
    End Sub
End Class